/***************************************************************
|	File:		Color.cpp
|	Author:		Michael Mozdzierz
|	Date:		05/28/2014
|
***************************************************************/

#include "stdafx.h"
#include "Color.h"


/*static*/ Color Color::Red = Color(255, 0, 0);
/*static*/ Color Color::Green = Color(0, 255, 0);
/*static*/ Color Color::Blue = Color(0, 0, 255);
/*static*/ Color Color::Yellow = Color(255, 255, 0);
/*static*/ Color Color::Gray = Color(128, 128, 128);
/*static*/ Color Color::White = Color(255, 255, 255);
/*static*/ Color Color::Black = Color(0, 0, 0);
/*static*/ Color Color::Orange = Color(255, 128, 0);


Color::Color(void)
{
	memset(this, 0, sizeof(Color));
}

Color::Color(int r, int g, int b)
{
	this->r = float(r / 255.f);
	this->g = float(g / 255.f);
	this->b = float(b / 255.f);
	this->a = 1.f;
}

Color::Color(float a, float r, float g, float b)
{
	this->a = a;
	this->r = r;
	this->g = g;
	this->b = b;
}